package com.farm.learn.dao;

import com.farm.core.sql.query.DBRule;
import com.farm.core.sql.query.DataQuery;
import com.farm.core.sql.result.DataResult;
import com.farm.learn.domain.ClassUser;
import org.hibernate.Session;

import java.util.List;
import java.util.Map;


public interface ClassUserDaoInter {

    public void deleteEntity(ClassUser classUser);

    public ClassUser getEntity(String id);

    public ClassUser insertEntity(ClassUser classUser);

    public int getAllListNum();

    public void editEntity(ClassUser classUser);

    public Session getSession();

    public DataResult runSqlQuery(DataQuery query);

    public void deleteEntitys(List<DBRule> rules);


    public List<ClassUser> selectEntitys(List<DBRule> rules);


    public void updataEntitys(Map<String, Object> values, List<DBRule> rules);

    public int countEntitys(List<DBRule> rules);

    public List<ClassUser> findLearnByClassId(String classId, String userid);
}